<?php
/**
 * Created by PhpStorm.
 * User: liujun
 * Date: 2018/6/20
 * Time: 下午10:46
 */

/**
 * http://www.myleftstudio.com/reference/annotations.html
 *
 * @RoutePrefix("/index")
 */
class IndexController extends \Dai\Framework\Base\BaseController
{
    /**
     * @Get("/index")
     * @Login(true)
     * @formCheck(false)
     */
    public function indexAction()
    {
        $this->execute();
    }

    /**
     * @Get("/credit")
     * @Login(true)
     * @desc 信用卡
     */
    public function creditAction()
    {
        //填上信用卡的url
        $url = "http://credit.shbinbai.com/new/?qd=444&spd=a022";
        header("Location: $url");
        exit;
    }

    /**
     * @Get("/usercenter")
     * @Login(true)
     * @desc 个人中心页面
     */
    public function userCenterPageAction() {
        $url = "http://pdd.keepfoolish.cn/user_center.html";
        header("Location: $url");
        exit;
    }

    /**
     * @Get("/userteam")
     * @Login(true)
     * @desc 我的团队页面
     */
    public function userTeamPageAction() {
        $url = "http://pdd.keepfoolish.cn/my_team.html";
        header("Location: $url");
        exit;
    }

    /**
     * @Get("/userspread")
     * @Login(true)
     * @desc 我的推广收入页面
     */
    public function userSpreadPageAction() {
        $url = "http://pdd.keepfoolish.cn/my_promotion.html";
        header("Location: $url");
        exit;
    }

    /**
     * @Get("/userwithdraw")
     * @Login(true)
     * @desc 提现列表管理界面
     */
    public function userWithdrawMoneyListPageAction() {
        $url = "http://pdd.keepfoolish.cn/userwithdraw.html";
        header("Location: $url");
        exit;
    }

    /**
     * @Get("/withdraw")
     * @Login(true)
     * @desc 我的账户页面
     */
    public function userWithdrawPageAction() {
        $url = "http://pdd.keepfoolish.cn/withdraw.html";
        header("Location: $url");
        exit;
    }
}